import request from '@/utils/request'

// 查询学习经历列表
export function listRegisterLearn(query) {
  return request({
    url: '/business/registerLearn/list',
    method: 'get',
    params: query
  })
}

// 查询学习经历所有列表
export function listAllRegisterLearn(query) {
  return request({
    url: '/business/registerLearn/listAll',
    method: 'get',
    params: query
  })
}

// 查询学习经历详细
export function getRegisterLearn(id) {
  return request({
    url: '/business/registerLearn/getInfo/' + id,
    method: 'get'
  })
}

// 新增学习经历
export function addRegisterLearn(data) {
  return request({
    url: '/business/registerLearn/add',
    method: 'post',
    data: data
  })
}

// 修改学习经历
export function updateRegisterLearn(data) {
  return request({
    url: '/business/registerLearn/edit',
    method: 'post',
    data: data
  })
}

// 删除学习经历
export function delRegisterLearn(id) {
  return request({
    url: '/business/registerLearn/remove/' + id,
    method: 'get'
  })
}
